package org.dei.perla.sys.device.fpc.DSPICLog.datastructures;


import org.dei.perla.utils.dataconverter.annotations.SimpleField;
import org.dei.perla.utils.dataconverter.annotations.StructInfo;
import org.dei.perla.utils.dataconverter.enums.Endianness;
import org.dei.perla.utils.dataconverter.enums.Sign;

@StructInfo(endianness = Endianness.LITTLE_ENDIAN, totalStructSize = 28)
public class DevicesLog {
	
	@SimpleField(size = 8, sign = Sign.UNSIGNED)
	private long timestamp;
	
	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int nodeId;

	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int uptime;
		
	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int dataTimeout;
	
	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int parameterTimeout;
	
	@SimpleField(size = 4, sign = Sign.UNSIGNED)
	private int round;

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getNodeId() {
		return nodeId;
	}

	public void setNodeId(int nodeId) {
		this.nodeId = nodeId;
	}

	public int getUptime() {
		return uptime;
	}

	public void setUptime(int uptime) {
		this.uptime = uptime;
	}

	public int getDataTimeout() {
		return dataTimeout;
	}

	public void setDataTimeout(int dataTimeout) {
		this.dataTimeout = dataTimeout;
	}

	public int getParameterTimeout() {
		return parameterTimeout;
	}

	public void setParameterTimeout(int parameterTimeout) {
		this.parameterTimeout = parameterTimeout;
	}

	public int getRound() {
		return round;
	}

	public void setRound(int round) {
		this.round = round;
	}
	
}
